<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style> 
        td,tr{
           border: 1px solid black; 
        }
        </style>
</head>
<body>
<div id="table"></div>
<script>
    str="<table>";
    for(var i=1;i<=9;i++){
        str+="<tr>";
        for(var j=1;j<=i;j++){
            str+="<td>"+j+"*"+i+"="+i*j+"</td>";
        }
        str+="</tr>"
    }
    str+="</table>";
    document.getElementById("table").innerHTML=str;
</script>
<a href="../第二章.html">返回第二章</a>
</body>
</html>